Skip to content

Lint Markdown prose with Vale - #3127

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vale-markdown
Aug 7, 2026
Merged

Lint Markdown prose with Vale#3127
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vale-markdown

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Aug 7, 2026

Copy link
Copy Markdown
Member

Follow-up to the change that banned em dashes in reStructuredText.

.rst was the wrong boundary: it came from the shape of the original vws-python change, not from where our prose lives. Markdown is prose too, and nothing was checking it. Vale now lints both ([*.{rst,md}]), and the vale hook gains markdown to its types_or while vale sync re-runs for .md changes as well.

No prose changes were needed here; the existing Markdown is already clean. The value is preventive, and it makes the rule consistent across every repository that has this hook.

Verified locally: Vale reports no alerts over the tracked .rst and .md files, and prek run over the changed files passes.

🤖 Generated with Claude Code


Note

Low Risk
Config-only change to dev hooks; no runtime, auth, or data paths affected.

Overview
Extends the existing ClearProse / Vale setup so Markdown gets the same prose rules (for example no em dashes) as reStructuredText, instead of only .rst files.

In .vale.ini, the scope moves from [*.rst] to [*.{rst,md}]. In .pre-commit-config.yaml, the vale hook now includes markdown in types_or, and vale sync also runs when .md files change via an updated files pattern. Comments are updated to describe both formats.

Reviewed by Cursor Bugbot for commit 6e698d4. Bugbot is set up for automated code reviews on this repo. Configure here.

Extend the ClearProse em dash ban from reStructuredText to Markdown, so
the rule covers all our prose rather than only Sphinx documentation.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@adamtheturtle
adamtheturtle merged commit d8ac52c into main Aug 7, 2026
14 checks passed
@adamtheturtle
adamtheturtle deleted the adamtheturtle/vale-markdown branch August 7, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant